var mongoose = require('mongoose')

var schema = require('../config/schema')
var newsSchema = mongoose.Schema(schema.news)

// vacationSchema.methods.getDisplayPrice = function(){

//     return '$' + (this.priceInCents/100).toFixed(2);
// }

var newsModel = mongoose.model('news', newsSchema)

module.exports = newsModel;
